//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    titles: [
      {
        id: 0,
        text: "推荐"
      },
      {
        id: 1,
        text: "分类"
      },
      {
        id: 2,
        text: "最新"
      },
      {
        id: 3,
        text: "专辑"
      }
    ],
    activeIndex: 0
  },
  getactiveIndex(e) {
    // console.log(e)
    var s_index = e.detail
    this.setData({
      activeIndex: s_index

    })
  }
  
})
